/**
 * educational
 * 所有的教务，页面路由
 */
export default [
  {
    path: "/educational",
    redirect: "/educational/studentStatus",
    alwaysShow: true, // will always show the root menu
    name: "Educational",
    meta: {
      title: "教务管理",
      icon: "icon-jiaowuguanli",
      roles: ["admin", "editor"], // you can set roles in root nav
    },
    children: [
      {
        path: "schoolyear",
        component: () => import("@/views/Educational/schoolYear.vue"),
        name: "schoolYear",
        meta: {
          title: "学年学期配置",
          roles: ["admin"], // or you can only set roles in sub nav
        },
      },
      {
        path: "student",
        component: () => import("@/views/Educational/Student.vue"),
        name: "Student",
        meta: {
          title: "学生系统",
          roles: ["admin"], // or you can only set roles in sub nav
        },
      },
      {
        path: "studentStatus",
        component: () => import("@/views/Educational/StudentStatus.vue"),
        name: "StudentStatus",
        meta: {
          title: "学籍管理",
          roles: ["admin"], // or you can only set roles in sub nav
          keepAlive: false
        },
      },
      {
        path: "checkStudentStatus",
        component: () => import("@/views/Educational/CheckStudentStatus.vue"),
        name: "CheckStudentStatus",
        meta: {
          title: "查看/编辑学籍",
          roles: ["admin"], // or you can only set roles in sub nav
          keepAlive: false,
        },
        hidden: true,
      },
      {
        path: "teachermanagement",
        component: () => import("@/views/Educational/TeacherManagement.vue"),
        name: "TeacherManagement",
        meta: {
          title: "教师管理",
          roles: ["admin"], // or you can only set roles in sub nav
        },
      },
      
      {
        path: 'teachingPlan',
        component: () => import('@/views/Educational/TeachingPlan.vue'),
        name: 'TeachingPlan',
        meta: {
            title: '教学计划管理',
            roles: ['admin'] // or you can only set roles in sub nav
        }
    },
      {
          path: 'teacherplanquery',
          component: () => import('@/views/Basics/teacherPlanQuery.vue'),
          name: 'teacherPlanQuery',
          meta: {
              title: '教学计划查询',
              roles: ['admin']
          }
      },
      {
        path: "classShift",
        component: () => import("@/views/Educational/ClassShift.vue"),
        name: "ClassShift",
        meta: {
          title: "分班系统",
          roles: ["admin"], // or you can only set roles in sub nav
        },
      },
      {
        path: "courseScheduling",
        component: () => import("@/views/Educational/CourseScheduling.vue"),
        name: "CourseScheduling",
        meta: {
          title: "排课管理",
          roles: ["admin"], // or you can only set roles in sub nav
        },
      },
      {
        path: "checkCourse",
        component: () => import("@/views/Educational/CheckCourse.vue"),
        name: "CheckCourse",
        meta: {
          title: "课表查询",
          roles: ["admin"], // or you can only set roles in sub nav
        },
      },
      {
        path: "addstudent",
        component: () => import("@/views/Educational/AddStudent.vue"),
        name: "Addstudent",
        meta: {
          title: "添加学生",
          roles: ["admin"], // or you can only set roles in sub nav
        },
        hidden: true,
      },
      {
        path: "editstudent",
        component: () => import("@/views/Educational/editStudent.vue"),
        name: "Editstudent",
        meta: {
          title: "修改学生",
          roles: ["admin"], // or you can only set roles in sub nav
        },
        hidden: true,
      },
      {
        path: "checkstudent",
        component: () => import("@/views/Educational/CheckStudent.vue"),
        name: "CheckStudent",
        meta: {
          title: "查看学生信息",
          roles: ["admin"], // or you can only set roles in sub nav
        },
        hidden: true,
      },
      {
        path: "addteacher/:rowId/:isLookInfo",
        component: () => import("@/views/Educational/Addteacher.vue"),
        name: "Addteacher",
        meta: {
          title: "添加教师",
          roles: ["admin"], // or you can only set roles in sub nav
        },
        hidden: true,
      },
      {
        path: "seeclassShift",
        component: () => import("@/views/Educational/SeeclassShift.vue"),
        name: "SeeclassShift",
        meta: {
          title: "查看分类",
          roles: ["admin"], // or you can only set roles in sub nav
        },
        hidden: true,
      },
    ],
  },
];
